package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the TA_BILL database table.
 * 
 */
@Entity
@Table(name="TA_BILL")
public class TaBill implements Serializable {
	private static final long serialVersionUID = 1L;
	private TaBillPK id;
	private BigDecimal cant;
	private String coOper;
	private BigDecimal coTipoMone;
	private Date feBill;
	private BigDecimal moTota;
	private TaDiarCaja taDiarCaja;

    public TaBill() {
    }


	@EmbeddedId
	public TaBillPK getId() {
		return this.id;
	}

	public void setId(TaBillPK id) {
		this.id = id;
	}
	

	@Column(nullable=false)
	public BigDecimal getCant() {
		return this.cant;
	}

	public void setCant(BigDecimal cant) {
		this.cant = cant;
	}


	@Column(name="CO_OPER", nullable=false, length=2)
	public String getCoOper() {
		return this.coOper;
	}

	public void setCoOper(String coOper) {
		this.coOper = coOper;
	}


	@Column(name="CO_TIPO_MONE", precision=1)
	public BigDecimal getCoTipoMone() {
		return this.coTipoMone;
	}

	public void setCoTipoMone(BigDecimal coTipoMone) {
		this.coTipoMone = coTipoMone;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="FE_BILL")
	public Date getFeBill() {
		return this.feBill;
	}

	public void setFeBill(Date feBill) {
		this.feBill = feBill;
	}


	@Column(name="MO_TOTA", nullable=false, precision=12, scale=2)
	public BigDecimal getMoTota() {
		return this.moTota;
	}

	public void setMoTota(BigDecimal moTota) {
		this.moTota = moTota;
	}


	//bi-directional many-to-one association to TaDiarCaja
    @ManyToOne
	@JoinColumn(name="ID_DIAR", nullable=false, insertable=false, updatable=false)
	public TaDiarCaja getTaDiarCaja() {
		return this.taDiarCaja;
	}

	public void setTaDiarCaja(TaDiarCaja taDiarCaja) {
		this.taDiarCaja = taDiarCaja;
	}
	
}